package com.ruoyi.jl.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.exception.CustomException;
import com.ruoyi.jl.domain.Player;
import com.ruoyi.jl.domain.custome.CustomPlayer;

import java.util.List;

/**
 * 玩家 服务层
 * 
 * @author wh
 * @date 2019-04-29
 */
public interface IPlayerService extends IService<Player> {
    /**
    * 列表查询
    */
    List<CustomPlayer> list(Player player);

    int changeStatus(Player player);

    void giveGold(Integer adminId, Integer playerId, Integer goldNum, String ipAddr, Integer type);

    CustomPlayer queryEditInfo(Integer playerId);

    void updatePlayer(CustomPlayer player);

    Player queryPlayerInfo(Player player);

    void updatePlayerInfo(Player player, String newToken);

    Integer PlayGiveGold(Integer giveId, Integer receiveId, Integer goldNum, String ipAddr, String safePwd) throws CustomException;

    void updateSafeGold(Integer playerId, String oldSafePwd, String newSafePwd) throws CustomException;

    Player queryPlayer(String wxOpenid);

    int customQueryWrapper(Player player) throws CustomException;
}
